ImageUtils

open class ImageUtils

Functions

Link copied to clipboard
open fun calculateInSampleSize(    @NonNull input: InputStream,     width: Int,     height: Int): Int
open fun calculateInSampleSize(    @NonNull filePath: String,     width: Int,     height: Int): Int
Link copied to clipboard
open fun exifOrientationToDegrees(exifOrientation: Int): Int
Link copied to clipboard
open fun getBitmap(    @NonNull path: String,     width: Int,     height: Int): Bitmap
Link copied to clipboard
open fun getDimensions(@NonNull path: String, @NonNull mimeType: String): Pair<Integer, Integer>
Link copied to clipboard
open fun getThumbnailBitmap(@NonNull path: String, @NonNull mimeType: String): Bitmap
Link copied to clipboard
open fun resize(    @NonNull resources: Resources,     @Nullable drawable: Drawable,     @DimenRes width: Int,     @DimenRes height: Int): Drawable
Link copied to clipboard
open fun rotate(@NonNull bitmap: Bitmap, degree: Float): Bitmap